package com.hj.controller;

import com.hj.pojo.Account;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author 27435
 * @Date 2024/12/1916:19
 * @Version 1.0
 */

@Controller
@RequestMapping("/account")
public class AccountController {

//    @RequestMapping(value = {"/save"}, method = {RequestMethod.GET})
    @RequestMapping("/save")
    @ResponseBody
//    public String addAccount(@RequestParam("name1") String name, @RequestParam("age1") Integer age){
//        System.out.println(name);
//        System.out.println(age);
//        return "add Account";
//    }
    public String addAccount(Account account){
        System.out.println(account









        );
        return "add Account";
    }

    @RequestMapping("/delete")
    @ResponseBody
    public String delete(){
        return "delete account";
    }

}
